<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单对齐示例</title>
    <style>
        /* 设置表单的基本样式 */
        .form-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 8px;
        }

        .form-item {
            display: flex;
            align-items: center; /* 垂直对齐文本与文本框 */
            margin-bottom: 15px;
            margin-left: 20px;
        }

        label {
            width: 120px; /* 设置label的宽度 */
            text-align: left; /* 文本右对齐 */
            margin-right: 10px; /* label与文本框之间的间距 */
            margin-left: 20px;
        }



        /* 如果你需要设置多个文本框对齐 */
        /* .form-item input {
            margin-top: 0;
            margin-bottom: 0;
        } */
    </style>
</head>
<body>

    <div class="form-container">
        <form>
            <div class="form-item">
<<<<<<< HEAD
                <label for="name">姓名水淀粉234：</label>
                <input type="text" id="name" name="name">
                <label for="name">姓名是的234：</label>
                <input type="text" id="name" name="name">
            </div>
            <div class="form-item">
                <label for="email">邮箱234：</label>
                <input type="text" id="email" name="email">
                <label for="name">姓名234：</label>
                <input type="text" id="name" name="name">
            </div>
            <div class="form-item">
                <label for="phone">水淀粉电话234：</label>
                <input type="text" id="phone" name="phone">
            </div>
        </form>
    </div>

</body>
</html>
